<?php if (empty($user)) { ?>
	<script type="text/javascript">
	$('userInfoDiv').setStyle('display', 'none');
	</script>
<?php } else { ?>
	<script type="text/javascript">
	$('userInfoDiv').setStyle('display', '');
	</script>
<div style="height:77px;line-height:55px;padding-top:0px;overflow:hidden;cursor:auto">
	<div style="height:22px;cursor:pointer" onclick="goMyluck()"></div>
    <div style="padding:10px 10px 0px 20px;float:left;cursor:auto;"><img style="cursor:pointer" width="36"  onclick="goMyluck()" height="36" src="<?=$user['g_head']?>"/></div>
    <div style="width:120px;text-align:center;float:left;font-weight:bold;color:#005aa3;cursor:auto">
    <div style="width:115px;line-height:28px;height:28px;overflow:hidden;padding-top:5px;cursor:pointer" onclick="goMyluck()">您好，<?=htmlspecialchars(htmlspecialchars_decode($user['g_name']))?></a></div>

    </div>  
</div>

<div style="padding-left:18px;color:#005aa3" onclick="goMyluck()">
    <table cellpadding="0" cellspacing="0" width="170">
    <tr><td height="18" width="85">等级：<b><?=$user['level']['level']?></b></td><td width="85">申请机会：<b><?=$user['g_canapply'] ?></b></td></tr>
    <tr><td height="18">金币：<b ><?=$user['g_gold']?></b></td><td>积分：<b><?=$user['g_money'] ?></b></td></tr>
    <tr><td height="18">宝贝：<b ><?=$user['luck_count']?></b></td><td>未分享：<b><?=$user['luck_unshare'] ?></b></td></tr>
    </table>
</div>
<div style="text-align:center;font-weight:bold;padding-top:5px;color:#005aa3">
<div style="line-height:46px" onclick="goInvite()">邀请5位好友  获得1枚金币</div>
<?php if (SystemProperties::$platform =='renren') { ?>
<div style="padding-top:6px" onclick="addFollow()"><a href="http://page.renren.com/icantry" target="_blank"><img src="<?=SystemProperties::$path?>/image/new/addfollow.gif"></a></div>
<div style="line-height:26px" onclick="addFollow()"><a href="http://page.renren.com/icantry" target="_blank">实时关注新品宝贝上线</a></div>
<?php } else if (SystemProperties::$platform =='sina') { ?>
<div style="padding-top:6px" onclick="addFollow()"><img src="<?=SystemProperties::$path?>/image/new/addfollow.gif"></div>
<div style="line-height:26px" onclick="addFollow()">实时关注新品宝贝上线</div>
<?php } ?>
</div> 
<?php } ?>